/**
 * 摸出一个牌后，如果自己的检测通不过，就是自己不能跑跟畏跟胡的情况下；则将这个牌公示出来
 * @param next_card_number
 * @param who_uid
 */
function draw_play_mopai_card_gongshi( next_card_number , who_uid ){
    //自己摸牌公式自己的情况下，则把牌缩小移动到本方头像的左侧区域
    if( who_uid != PB_USER_UID ) {
        //生成一张公示牌
        PL_Room_Play.MOPAI_BG2 = cc.Sprite.create('res/pai/' + PAI_HAO[next_card_number] + '.png');
        PL_Room_Play.MOPAI_BG  = cc.Sprite.create("res/mopai_bj.png");
        if (who_uid == ROOM_WS_XJ) {
            PL_Room_Play.MOPAI_BG2.x = PL_Room_Play.realy_size.width - 200;
            PL_Room_Play.MOPAI_BG2.y = 200;
        }
        if (who_uid == ROOM_WS_SJ) {
            PL_Room_Play.MOPAI_BG2.x = 200;
            PL_Room_Play.MOPAI_BG2.y = PL_Room_Play.realy_size.height - 200;
        }
        if (who_uid == ROOM_WS_DM) {
            PL_Room_Play.MOPAI_BG2.x = PL_Room_Play.realy_size.width - 200;
            PL_Room_Play.MOPAI_BG2.y = PL_Room_Play.realy_size.height - 200;
        }
        PL_Room_Play.MOPAI_BG.x = PL_Room_Play.MOPAI_BG2.x;
        PL_Room_Play.MOPAI_BG.y = PL_Room_Play.MOPAI_BG2.y;
        //添加节点
        PL_Room_Play.addChild(PL_Room_Play.MOPAI_BG2, 99999999);
        PL_Room_Play.addChild(PL_Room_Play.MOPAI_BG, 99999999);
    }else{
        PL_Room_Play.MOPAI_BG2.runAction( cc.MoveTo.create( 0.3 , cc.p(  220 ,  250 )) );
        PL_Room_Play.MOPAI_BG.runAction( cc.MoveTo.create( 0.3 , cc.p(  220 ,  250 )) );
    }
}
function draw_play_mopai_feiqi( who_uid , card_number ){
    //删除本张废牌的背景牌&以及公示牌
    PL_Room_Play.removeChild( PL_Room_Play.MOPAI_YANGAI );
    if( PL_Room_Play.MOPAI_BG2 != null ){ PL_Room_Play.removeChild(PL_Room_Play.MOPAI_BG2) ;}
    if( PL_Room_Play.MOPAI_BG != null ) { PL_Room_Play.removeChild(PL_Room_Play.MOPAI_BG) ; }
    //生产一张废弃小牌
    add_bp( card_number , PL_Room_Play.MOPAI_BG2.x , PL_Room_Play.MOPAI_BG2.y , who_uid , false );
}
